package com.tarena.lbs.business.servcie.impl;

import com.tarena.lbs.business.dao.repository.BusinessCategoryRepository;
import com.tarena.lbs.business.pojo.vo.BusinessCategoryVO;
import com.tarena.lbs.business.servcie.BusinessCategoryService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BusinessCategoryServiceImpl implements BusinessCategoryService {
    private static final Logger log = LoggerFactory.getLogger(BusinessCategoryServiceImpl.class);
    @Autowired
    private BusinessCategoryRepository businessCategoryRepository;
    @Override
    public List<BusinessCategoryVO> selectCategory() {
        log.debug("查询所有分类:{}");
        List<BusinessCategoryVO> CategoryList = businessCategoryRepository.selectCategory();
        return CategoryList;
    }
}
